import Cookies from 'js-cookie'

const mutations = {
    TOGGLE_STATE (state, name){
        state[name] = !state[name]
    },
    LOGOUT_STATE (state) {
        state.isLogin = false
        Cookies.remove('ACCESS_TOKEN')
    }
}

export default mutations
